package cn.bugstack.domain.activity.service.quota;

import cn.bugstack.domain.activity.model.entity.ActivityCountEntity;
import cn.bugstack.domain.activity.model.entity.ActivityEntity;
import cn.bugstack.domain.activity.model.entity.ActivitySkuEntity;
import cn.bugstack.domain.activity.repository.IActivityRepository;
import cn.bugstack.domain.activity.service.quota.rule.factory.DefaultActionChainFactory;

/**
 * @Author: Zchy
 * @Description: 抽奖活动的支撑类
 * @DateTime: 11/30/2024 3:40 PM
 **/
public class RaffleActivityAccountQuotaSupport {

    protected DefaultActionChainFactory actionChainFactory;

    protected IActivityRepository activityRepository;

    public RaffleActivityAccountQuotaSupport(DefaultActionChainFactory actionChainFactory, IActivityRepository activityRepository) {
        this.actionChainFactory = actionChainFactory;
        this.activityRepository = activityRepository;
    }

    public ActivitySkuEntity queryActivitySku(Long sku) {
        return activityRepository.queryActivitySku(sku);
    }

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }
}
